//
//  125. 验证回文串.swift
//  手撕代码
//
//  Created by xiaoZuDeMeng on 2024/1/31.
//

import Foundation

func isPalindrome(_ s: String) -> Bool {
    let string = s.filter { $0.isLetter || $0.isNumber }.lowercased()
    return string == String(string.reversed())
}
